Second refactoring of entityinfo_page_admin() to reduce complexity