Remove unused methods in entities.