Backend: Better implementation for createBackend

Thanks eric!

fixes #7043