refractoring routing