Refactoring work to kdf since that's all it does now.