Refactors regarding chunk location calculating