Historic north side building being transformed into affordable housing