Refactor conditions for allowing plugins into a new method: Site#plguin_allowed?