Clean up app definition