Extract content type detection to its own method.
Extract content type detection to its own method.

Signed-off-by: David Calavera <b9b0c8e7f90ecf337f6797c4d2e0f1dd0dbc0324@gmail.com>

github/git-lfs,github/git-lfs,github/git-lfs