Removing duplicate generated methods