Refactoring for some readability (extracting methods).