Extracted method for improved readability