Make sure an EP is only built when actually needed