Move ignore stuff into ignore.h/c