Further optimize Mappings.for by removing regex and unrolling