Split wake-on-lan config to include file

Hi! newbie here, trying to split config into single files.
I’m trying to move all WoL related config and items to an included file.

So in configuration.yaml I have:

# Wake on LAN
wake_on_lan: !include wake_on_lan.yaml

And then in my wake_on_lan.yaml I have:

switch:

  - platform: wake_on_lan
    mac: "aa-bb-cc-dd-ee-ff"
    name: "My PC"

If I put it all together in configuration.yaml it works fine.
So question is: how do I properly split this config to an external file?

Remove this from the wake on lan part. It belongs to switches

Thanks, deluxestyle
So there’s no way to split wol switches to a different yaml?
Must all switches be together in the same file?