refactor(generator:style): Move install style function to the script base object for use in other generators