Remove old API of the exposure app, plus some cleanup and little refactoring