aggregation: refactor - move views and url utils into different files