Tool for removing a valve assembly