Application System

When does it make sense to outsource, specifically the maintenance and support of an application system? 200-300 words