hanged the functionality of hooks for secondary outputs, now they are not
required in the general settings but in each of the specified secondary
outputs. This allows to separate the code for each secondary output and
helps in better organization and management of code in cases where we have
a lot of secondary outputs.