Moved out common initialisers.