Instead of inheritance, why not pass in an object of an interface with this method and use that?