Abstract map controller functionality to common controller