Moved ES dep from getter/setter to constructor

> please use constructor arguments for the dependencies rather than
setters