move registration of after_setup_theme hooks out of constructor