Minir refactor to remove an object