function to help with creating BuildOpts records