Remove deprecations

This removes a number of deprecated arguments and functions. There are a few remaining but need to be more carefully audited.