Change reffering class on compile time