A simple refractoring