Separate validate and extract functions.

This is a breaking change.
Bump version. Breaking change so bump minor version.