Rewrite to discard static methods.