BETA: Shared code for our automatic metadata enhance tooling.