Move private methods to internals module