refactor(SourceMetadataExtractor): Refactor how inheritance chain is traversed so that this can work from command line.