Refactoring: use predefined method.