fix rubocOp warning 'DeprecatedClassMethods'