Remove script part in view Settings to into separate script files.