Move all file type bits to mixin