Reduce duplication between `parse.file_contents` and `identify.imports` via shared `_parse_utils` module