Move PoW / PoS difficulty conversion where it is needed earlier