Top-mounted ball valve