Remove Libregistry

Inlined its remaining code at the only location where it is used.
Cannot get rid of that without first fixing some other things.

Change-Id: I3d47e55eaadf2f008eb443f271280b993783d677
Merge "Remove Libregistry"