Created factory, which will contain all relations with the backend in.