The court—
So far as it relates to racial and religious hostility, this section does not apply in relation to an offence under sections 29 to 32 of the Crime and Disorder Act 1998 (racially or religiously aggravated offences).
For the purposes of this section, an offence is aggravated by hostility of one of the kinds mentioned in subsection (1) if—
For the purposes of paragraphs (a) and (b) of subsection (4), it is immaterial whether or not the offender's hostility is also based, to any extent, on any other factor not mentioned in that paragraph.
In this section—