chore(metadata): Move most metadata logic into OO service

This is missing `->metadataTable->`