Preventing common hooks from running on all environments

Follow