Properly handle the :team argument.