NX-724: Get rid of the ctor trick

But this also means that now the code will _stop working
on NX version older than 2.7_.

Issue
https://issues.sonatype.org/browse/NX-724