Split code for consistency and readability