Cleans up location direction conditionals.