You can just pass the EncoderService as part of the constructor.