Move CSR to own compilation unit