Removing class property in rest services