Adapt tags to backend structure