remove get_metadata() helper, not used anymore (thanks @jerith)