Moving the setter injection to repository creation