Replacing specifics with generics