[TASK] Move BE-related bootstrap code to PSR-15 middleware