Move mappings into Ruby scope