Huge refactoring using concurrent-ruby