Refactor location CRUD and implement rack listing.