This is an issue that has been looked at on at least two separate occasions by the European Court of Justice, which has laid down the legal criteria for situations such as this where the appropriate legal base has to be properly taken into account when putting forward legislation.