[Village] Refactor the function getAvaiableArea