Use dependancy injection.