Merging the less logic to get the correct less resources