Refectoring of code modules