I want to use this outside of the collection, so let's move these functions into a new file. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>