refactor(library): move flycheck "helper" classes to separate module