Extract options validation into a function