Refactoring CW.cc (CW/SCW) regarding phi