Move AEM initialisation to separate function (cc @kaibeckmann).
Move AEM initialisation to separate function (cc @kaibeckmann).

basilfx/EFM2Riot,basilfx/EFM2Riot,basilfx/EFM2Riot,basilfx/EFM2Riot,basilfx/EFM2Riot