Refactored the request handlers so that the different request handlers (async, page) are distributed across different types.