Factor out 'afterPropertiesSet'