Remove unneccessary logic in getCallback