Relocalise some code