Move smartdown checking code to rake task