Lazify active record initialization.

This also fixes the active record initialization parameter
during service registration.