Unified the procedure for importing locations via file and plugin