The topo_metadata helper function can now be customized more easily