small refactor of helper method in EmageBuilder