Refactor location + context.