Port some DynamicsNAV helpers from gitnav