SYB-567 aquire sequence of size
remove unused code
Merge remote-tracking branch 'origin/master' into sofia/psp_emails_v2