Remove unnecessary methods.