Refactoring: extract method in helper class.
SONARPHP-369 Rule: "$this" should not be used in a static context