refactor to create CloudformationMapper::Mapper