WIP: [NEXUS-6027] remove deprecated code

https://issues.sonatype.org/browse/NEXUS-6027