remove decl of method to the new specific class