Was thinking.  How about set_color_part('RED', color. value).  That would just be a single function then that can call the right function based on what the first arg is. You wouldn't even have to remove the set_red, set_blue code just take off the @qgsfunction bit and stick them in a dict with lookup mappings.

Thoughts?