Refactor postcode_court lookup