[eagleplatform] Improve embed detection and extract in separate routine (Closes ...