eliminate redundant templates for object methods