Split large code block into smaller ones