Moved primeToRhoBasis copy to main