Redesign application architecture