REF: Put str -> ObjectId logic in reusable function.
REF: Put str -> ObjectId logic in reusable function.

tacaswell/metadataStore,hhslepicka/metadatastore,NSLS-II/metadatastore,tacaswell/metadataStore,hhslepicka/metadatastore,NSLS-II/metadatastore,ericdill/databroker,ericdill/databroker,arkilic/metadatastore,arkilic/metadatastore