Clean up install_app and get_code methods