Remove 0.4.0 deprecations

Deletes code deprecated in 0.4.0

See also other deprecated code removal by @aledsage in #1051 and #1043 and @Nakomis in #1045