Add explicit apply methods and remove implicit keyword from optional classes