This reduces the link-time dependencies and avoids copy-and-paste.
This patch is a part of the BSP source reorganization. Update #3285.