Move _setupTheme to beforeFilter
Fix tasks failing due to _setupTheme move