Remove deprecated methods and variables.