refactor TwofishesJob class hierarchy