Moving the loading and validation to the machinery package, so that we can import and use that from other projects. Co-authored-by: Noel Georgi <git@frezbo.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>