Only apply mapping to metrics-* indices.
Move collection-related files in separate package.