Refactoring nexus provisioning