Take out common initialization functionality both for init with and without option