Refactor Minilog in preparation for v2