Traits

Another trait to reduce code duplication when implementing ServiceLocatorAwareInterface