Refactor location trigger editor