Refactor flycheck autoloads