Refactoring ajax arounds.