Reduce some code duplication.
Reduce some code duplication.

Check resource.source_file.kind in _should_parse_resource instead of
every time the latter is called.

Ali-Razmjoo/hyde,netzverweigerer/hyde,jd/hyde,Ali-Razmjoo/hyde,bheesham/hyde,jngeist/hyde,JeNeSuisPasDave/hyde,0111001101111010/hyde,0111001101111010/hyde,bheesham/hyde,bheesham/hyde,printerpam/hyde,Ali-Razmjoo/hyde,jd/hyde,netzverweigerer/hyde,hyde/hyde,jngeist/hyde,printerpam/hyde,jd/hyde,hyde/hyde,JeNeSuisPasDave/hyde,printerpam/hyde,netzverweigerer/hyde,jngeist/hyde,hyde/hyde,JeNeSuisPasDave/hyde