Retry on all status > 500
Split integrator into class + module
More refactoring
Further refactor
Removed commented code