build: Remove special cased regexp

We can use generic regular expressions for transforming lower case types
into camel cased ones.