extract deowl-related functionality

(finally)