delete unused objec definition for method in typebuilder