refactoring calling class level method from class level method