Clean up code around map function