Refactor syntastic functions so it's easy to overwrite syntastic check function.