CDB-1387 #comment Extract method to register ghost table in rake task to its own method