Extrated method.