Remove old deprecated code.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes (1.2 API)
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | -
| Refs tickets  | -
| License       | MIT
| Doc PR        | -