Hamiltonian Approach to Secondary Quantization