Move initialization code in texts/views