Move content action functions to their own file.  #111