Make Backend work with generated mappings

Description

The backend is designed to use the hand-written mappings, so we need to do some small adjustments to make it work with the generated ones.