Factor out aplpy dependency