Why not just do this once at the top of the callback rather than doing it both the success and fail paths?