Factored out the Rails name mappings so they can be used from other relational mappings