Remove unwanted methods.