wine: move method closer to point of use