Why is this an issue?

Functions and procedures should be defined in packages, not in architectures.

How to fix it

Code examples

Noncompliant code example

architecture a of e is
  procedure my_procedure;
  function my_function return type1;
  ...
end;

Compliant solution

package p is
  procedure my_procedure;
  function my_function return type1;
  ...
end;