Make key an instance variable
Move check to constructor
Nail this in constructor
Extract factory
Move to new file
Move worker to own file and fix requires
Convert strings
Remove spaces
Convert strings
Convert strings
Create encoder in constructor
Fix typo
Rename
Move to factory
Reflect behaviour
Reindent