Move common code to helpers and refactor
Implement edit API for nfs exports