move paragraph mappings out of class