Made the drag-drop code into mixins.