Refactor inline cell to one class.