Factor decoarsening code.