Refactor with a data load and move post-data actions into a callback.