Changing dependecy scope