Move analytics calculations entirely porter side.