Extract to metrics module