Reduce duplication
Invert these dics for more readability