Avoid repeated call to_app method