Move owm specific functions into separate implementation file