Application initialization methods moved to trait.