I am an advocate of leaving everything in your bag, unless specifically being required to present it separately (e.g. laptops).
As soon as something is removed, an overzealous member of staff may start to object to it. The X-Ray operator is less likely to do this (they seem to be more experienced and better trained, IMO).