More refactoring on backends controller