Move Wfh::Lib's methods to instance methods