remove duplicate code for addon loading on publishing pages