refactoring: move nullify methods to module