Move common conf key set validation to lib