Refactor to improve readability.