The German automaker plans to leave a large and underutilized building in Auburn Hills for a smaller one.