Added `removeData` function and removed `$cookies` dependency.