Could you add a todo somewhere to refactor this code and the apache statistics code to be shared?