Organizing init code