Common helper functions to help Django break free