Improve readability of tile layout code.