Removes redundant toJSON from models.