Refactors reader/delegate callbacks.