Cutting a monolithic application to pieces