Issue127: Store component reference in metadata

This removes the need to have an extraction cache and gives users more ways
flexibility in dealing with the returned metadata