Move amap to deprecated.jl (#3613)