Refactoring private methods