(32)In order to ensure legal certainty and avoid overlaps between the current prudential framework applicable to both credit institutions and investment firms and this Directive, Regulation (EU) No 575/2013 and Directive 2013/36/EU should be amended in order to remove investment firms from their scope. However, investment firms which are part of a banking group should remain subject to those provisions in Regulation (EU) No 575/2013 and Directive 2013/36/EU which are relevant to the banking group, such as the rules on prudential consolidation set out in Articles 11 to 24 of Regulation (EU) No 575/2013 and the provisions on the intermediate EU parent undertaking referred to in Article 21b of Directive 2013/36/EU.