Moving component helpers to their own files.

Trying to keep it in one file would be a bad idea.