Eliminating unwanted methods