Break out code from private classes