Refactor method call