Task to refactoring static method, fail