refactor nestedModels module into nestedOperations model and refactor